package com.ryoma.service.impl;

import com.ryoma.mapper.development.CommonQueryMapper;
import com.ryoma.model.CommonQuery;
import com.ryoma.service.CommonQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service(value = "commonQueryService")
public class CommonQuerySerivceImpl implements CommonQueryService {

    @Autowired
    CommonQueryMapper commonQueryMapper;

    @Override
    public Map getMap(CommonQuery commonQuery) {
        return commonQueryMapper.getMap(commonQuery);
    }

    @Override
    public int getList() {
        return commonQueryMapper.getList();
    }

    @Override
    public List<Map<String,Object>> getResultList(CommonQuery commonQuery) {
        return commonQueryMapper.getResultList(commonQuery);
    }
}
